package liuyang.bigeventserver.modules.security.jwt;

import liuyang.bigeventserver.modules.security.jwt.vo.PrincipalInfo;

/**
 * 边写边抽取
 *
 * @author xconf
 * @since 2024/2/28
 */
public interface JwtTokenService {

    String getSecretKey();
    String getIssuer();
    Long getTtl();

    String sign(String username);
    String sign(String userid, String username);

    PrincipalInfo verify(String token);
}
